/*
 * IConnector.h
 *
 *  Created on: Aug 12, 2012
 *      Author: nam20485
 */

#ifndef ICONNECTOR_H_
#define ICONNECTOR_H_

#include "Message.h"

class IConnector
{
public:
	typedef void (*ConnectorReceiveHandler)(const Message& message);

	virtual ~IConnector()	{}

	virtual bool Connect(ConnectorReceiveHandler m_pfnReceiveHandler) = 0;
	virtual bool Disconnect() = 0;
	virtual bool Send(const Message& message) = 0;
	virtual bool Receive(const Message& message) = 0;

protected:
	ConnectorReceiveHandler m_pfnReceiveHandler;

	//inline IConnector() {}
};


#endif /* ICONNECTOR_H_ */
